package com.wish.banking.controller;


import com.wish.banking.entity.JrProduct;
import com.wish.banking.service.IJrProductService;
import com.wish.common.core.usconfig.common.MsgResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 高露雯:金融产品表 前端控制器
 * </p>
 *
 * @author gaoluwen
 * @since 2022-04-03
 */
@RestController
@RequestMapping("/jr-product")
public class JrProductController {
    @Autowired
    IJrProductService iJrProductService;
    //金融产品选择下拉框
    @GetMapping("productTypeList")
    public MsgResult productTypeList(){
        List<JrProduct> list = iJrProductService.productTypeList();
        return MsgResult.succeed(list);
    }

}
